package com.changgou.goods.pojo;

import java.io.Serializable;
import java.util.List;
/*商品组合实体类，Dto一般用于接收前端的参数或响应复杂对象给前端使用,命名规范已dto结尾*/
public class Goods implements Serializable {

    private Spu spu;    //spu
    private List<Sku> skuList;  //skuList集合

    public Goods() {
    }

    public Goods(Spu spu, List<Sku> skuList) {
        this.spu = spu;
        this.skuList = skuList;
    }

    public Spu getSpu() {
        return spu;
    }

    public void setSpu(Spu spu) {
        this.spu = spu;
    }

    public List<Sku> getSkuList() {
        return skuList;
    }

    public void setSkuList(List<Sku> skuList) {
        this.skuList = skuList;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "spu=" + spu +
                ", skuList=" + skuList +
                '}';
    }
}
